package com.linln.admin.system.validator;



import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author 小懒虫
 * @date 2018/8/14
 */

public class RoleValid implements Serializable {
    private static final long serialVersionUID = -8999734526548175L;
    @NotEmpty(message = "角色编号不能为空")
    private String name;
    @NotEmpty(message = "角色名称不能为空")
    private String title;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "RoleValid{" +
                "name='" + name + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
